Skip to content

Forward reference video generation to Python workers - #5698

Merged
georgi merged 1 commit into
mainfrom
codex/reference-to-video-python
Sep 10, 2026
Merged

Forward reference video generation to Python workers#5698
georgi merged 1 commit into
mainfrom
codex/reference-to-video-python

Conversation

@georgi

@georgi georgi commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Reference-capable Python workers can now receive every image and video reference from the existing ReferenceToVideo workflow and storyboard provider path. PythonProvider forwards the typed input object, model ID, generation options, secrets, and cancellation signal through the new provider.reference_to_video bridge operation.

The bridge preserves input order, rejects malformed or empty binary entries, and rejects combined media above 192 MiB before sending a frame. Results reuse the existing chunked video transfer and progress/cancellation paths. Worker capability discovery gates both the provider method and model tasks, so older workers do not expose reference generation. Native worker supported_tasks is normalized at the boundary, and forced calls to start-frame-only models fail before submission. Protocol version advances to 6 without raising its compatibility floor.

Companion changes:

Validation: runtime build and 110 focused bridge/provider tests passed, as did root typecheck, lint, and all five selected harness selfchecks. A real TypeScript bridge → Python worker → combined WanGP adapter integration passed ordered image-only, video-only, two-video and mixed requests, soundtrack on/off, progress, chunked output, and temporary-file cleanup. A separate subprocess integration verified cancellation and adapter termination. The WanGP session was simulated rather than running a GPU model.

npm run test:affected is not green: the unchanged Next.js examples pull @openclaw/fs-safe through existing runtime/node barrels, and Turbopack cannot bundle its native module. The failure persisted after reinstalling dependencies. A correct Cloudflare fix requires a separate change to the imports used by Workers; no checks were disabled and no unrelated example changes are included here.

@georgi
georgi merged commit efe3c5f into main Sep 10, 2026
23 checks passed
@georgi
georgi deleted the codex/reference-to-video-python branch September 10, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant